package com.stox.client.embedded.data.provider;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.stox.client.api.data.provider.BarClient;
import com.stox.services.data.provider.manager.BarManager;
import com.stox.shared.model.Bar;
import com.stox.shared.model.filter.BarCriteria;

@Component
public class EmbeddedBarClient implements BarClient {

	@Autowired
	private BarManager barManager;
	
	@Override
	public List<Bar> find(BarCriteria barCriteria) {
		return barManager.find(barCriteria);
	}

}
